package com.xq.sqlSession;

import java.util.List;

public interface SqlSession {

    public <E> List<E> findAll(String statementId, Object... params) throws Exception;

    public <T> T selectOne(String statementId, Object... params) throws Exception;

    public <T> T getMapperClass(Class<?> mapperClass);

    /**
     * 增删改查的方法
     * @param statementId
     * @param params
     * @return
     */
    public int doUpdate(String statementId, Object... params) throws Exception;

}
